package com.ymttest.database.sqlwapper.hunter;

import java.util.List;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.hunter.HunterTeamStatistics;

public class HunterTeamStatisticsWrapper {

	SqlManager manager;

	public HunterTeamStatisticsWrapper() {
		manager = new SqlManager("tradingsettlement");
	}

	@SuppressWarnings("unchecked")
	public HunterTeamStatistics selectByPrimaryKey(Long id) {

		List<HunterTeamStatistics> result = manager
				.getSelectResults(
						"com.ymttest.database.mapping.hunter.HunterTeamStatisticsMapper.selectByPrimaryKey",
						id);
		manager.commit();

		if (result.size() == 0) {
			Logger.comment("selectByPrimaryKey没有数据");
		}

		return result.get(0);
	}

	public static void main(String[] args) {

		HunterTeamStatisticsWrapper hunterTeamStatisticsWrapper = new HunterTeamStatisticsWrapper();
		HunterTeamStatistics hunterTeamStatistics = hunterTeamStatisticsWrapper
				.selectByPrimaryKey(Long.valueOf(1));

		Logger.comment(hunterTeamStatistics.getNo_gift_pkg_sale_amount()
				.toEngineeringString());
	}
}
